<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ace="http://www.icefaces.org/icefaces/components">
<ice:form id="form_paginator">
	<icecore:singleSubmit />
	<h:panelGrid columns="3">
		 <h:outputLabel for="paginatorIn" value="Cho phép phân trang:" />
		<h:selectBooleanCheckbox id="paginatorIn"
			value="#{dataTablePaginator.paginator}" />
		<h:message id="pagMsg" for="paginatorIn" />

		<h:outputLabel for="positionIn" value="Vị trí thanh phân trang:" />
		<h:selectOneRadio id="positionIn"
			value="#{dataTablePaginator.position}" required="true"
			disabled="#{!dataTablePaginator.paginator}">
			<f:selectItems value="#{dataTablePaginator.positionAvailable}" />
		</h:selectOneRadio>
		<h:message id="posMsg" for="positionIn" />

		<h:outputLabel for="rowsIn" value="Số dòng (1-30):" />
		<h:inputText id="rowsIn" value="#{dataTablePaginator.rows}"
			required="true" size="2" maxlength="2"
			disabled="#{!dataTablePaginator.paginator}">
			<f:validateLongRange minimum="1" maximum="30" />
		</h:inputText>
		<h:message id="rowsMsg" for="rowsIn" />

		<h:outputLabel for="pageIn"
			value="Tới trang (1-#{dataTablePaginator.startPageMaximum}):"
			rendered="#{dataTablePaginator.startPageMaximum != 1}" />
		<h:inputText id="pageIn" value="#{dataTablePaginator.startPage}"
			required="true" size="2" maxlength="2"
			disabled="#{!dataTablePaginator.paginator}"
			rendered="#{dataTablePaginator.startPageMaximum != 1}">
		</h:inputText>
		<h:message id="pageMsg" for="pageIn"
			rendered="#{dataTablePaginator.startPageMaximum != 1}" />
	</h:panelGrid>
</ice:form>

</html>
